package com.tidy.seed.admin.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
// 引入Jackson时间格式化注解（仅导入一次）
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author HZ-ZY
 * @since 2025-08-04
 */
@ApiModel(value = "Dict对象", description = "")
@Getter
@Setter
@TableName("sys_dict")
public class Dict implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "创建时间", notes = "字段名：createAt")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createAt;

    @ApiModelProperty(value = "更新时间", notes = "字段名：updateAt")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateAt;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "字典名称", notes = "字段名：name")
    private String name;

    @ApiModelProperty(value = "字典编号", notes = "字段名：code")
    private String code;

    @ApiModelProperty(value = "字典排序", notes = "字段名：sort")
    private Integer sort;

    @ApiModelProperty(value = "父亲id", notes = "字段名：parentId")
    private Integer parentId;

    @ApiModelProperty(value = "字段的值", notes = "字段名：dictKey")
    private Integer dictKey;

    @ApiModelProperty(value = "字段的名称", notes = "字段名：dictValue")
    private String dictValue;

    @ApiModelProperty(value = "备注", notes = "字段名：remark")
    private String remark;

}